package com.wgl.yygh.repository;

import com.wgl.model.hosp.Department;
import com.wgl.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName HospitalRepository.java
 * @Description TODO
 * @createTime 2022年02月05日 21:41:00
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    /**
    * @Author: Wgl
    * @Description: 根据科室编号和医院编号查询
    * @Date: 2022/2/6 14:24;
    * @param hoscode:
     * @param depcode: ;
    * @return: com.wgl.model.hosp.Department;
    */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

}
